<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<%@taglib uri="/WEB-INF/piaoyi.tld" prefix="piaoyi"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>票易信息管理系统</title>
<link rel="stylesheet" href="/css/admin.css" type="text/css"/>
<script type="text/javascript" src="/js/jquery-1.6.1.min.js"></script>
</head>
<body leftmargin="2" topmargin="2">
<fieldset><legend>场次管理-当前票务信息：</legend>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
    <tr class="tdbg3" align="left"> 
    <td>
    	<s:url action="admin_goods" id="goodsurl" />
    	名称:<s:property value="goods.name"/> | <a href="${goodsurl}">返回票务</a>
    </td>
    </tr>
</table>
</fieldset>
<s:url action="admin_daily?action=add&goodsId=${goodsId}" id="dailyaddurl" />
<fieldset><legend>场次管理：[<a href="${dailyaddurl}">添加场次</a>]</legend>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  <COLGROUP>
  <COL width="*" />
  <COL width="300" />
  <tr style="font-weight: bold;" align="center" class="tdbg2"> 
    <td>开始时间</td>
    <td>管理操作</td>
  </tr>
<s:iterator id="dl" value="%{dailyList}">
<s:url action="admin_daily?action=del&id=${dl.id}" id="dailydelurl" />
<s:url action="admin_daily?action=update&id=${dl.id}" id="dailyupdateurl" />
<s:url action="admin_price?goodsId=${dl.goodsId}&dailyId=${dl.id}" id="priceurl" />
    <tr class="tdbg3" align="center"> 
      <td>
      <s:if test="#dl.limitTime==0">
      	不限时间
      </s:if>
      <s:else>
      	<piaoyi:dailyTime value="#dl"/>
      </s:else>
      </td>
      <td>
      <a href="${dailyupdateurl}">修改</a> | 
      <a href="${dailydelurl}" onclick="{if(confirm('执行此删除操作后该信息不能恢复，确定删除吗？')){return true;}return false;}">删除</a> | 
      <a href="${priceurl}">价格操作</a>
      </td>
    </tr>
</s:iterator>
</table>
</fieldset>
</body>
</html>
